<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<script type="text/javascript">
	function dormBuildDelete(dormBuildId) {
		if(confirm("您确定要删除这个寝室吗？")) {
			window.location="dormBuild?action=delete&dormBuildId="+dormBuildId;
		}
	}
	$(document).ready(function(){
		$("ul li:eq(2)").addClass("active");
	});
</script>

<script type="text/javascript">
    transform = function(key){
        key.style.display="none";
        document.getElementById("txt").style.display="block"
         
    }
</script>
<div class="data_list">
		<div class="data_list_title">
			寝室管理
		</div>
		<!--<form name="myForm" class="form-search" method="post" action="dormBuild?action=search">
				<button class="btn btn-success" type="button" style="margin-right: 50px;" onclick="javascript:window.location='dormBuild?action=preSave'">添加</button>
				<span class="data_search">
					名称:&nbsp;&nbsp;<input id="s_dormBuildName" name="s_dormBuildName" type="text"  style="width:120px;height: 30px;" class="input-medium search-query" value="${s_dormBuildName }">
					&nbsp;<button type="submit" class="btn btn-info" onkeydown="if(event.keyCode==13) myForm.submit()">搜索</button>
				</span>
		</form>
		--><div>
			<table class="table table-striped table-bordered table-hover datatable">
				<thead>
					<tr>
						<th >编号</th>
						<th>寝室号</th>
						<th>寝室性质</th>
						<th>寝室类别</th>
						<th>寝室费</th>
						<th>水电费剩余</th> 
						<th>寝室状态</th>
						<th>寝室号码</th>
						<th>备注</th>
						<!--<th width="20%">操作</th>
					--></tr>
					
					
				</thead>
				<tbody>
				<c:forEach  varStatus="i" var="dorm" items="${dormList}">
					<tr>
						<td>${i.count}</td> 
						<td>${dorm.dormName }</td>
						<td>${dorm.dormType=="M"?"男生":"女生" }</td>
						<td>${dorm.dormNumber }人间</td>
						<td>￥${dorm.dormMoney }元</td>
						<td>￥${dorm.dormSD }元</td>
						<td>正常</td>
						<td>${dorm.dormTel }</td>
						<td></td><!--
						<td>
						<input type="button" id="btn" name="xxzx" value="缴纳水电"  onclick="transform(this)" class="btn btn-mini btn-success"/>
		<input type="text" id="txt" name="xxzx" value="" style="display:none" style="width:6px;"/>
		<input type="button" id="set" name="set" value="确定" style="display:none" />
					--></tr>
				</c:forEach>
				</tbody>
			</table>
		</div>

		
</div>